

class Base():
    def __init__(self,driver):
        self.driver = driver
    def get_uel(self,url):
        self.driver.get(url)

    def find_element(self, loc):
        return self.driver.find_element(*loc)

    def click(self, loc):
        self.find_element(loc).click()
    def send_keys(self,loc,s):
        self.find_element(loc).send_keys(s)
    def gettext(self,loc):
        return self.find_element(loc).text
    def close(self):
        self.driver.quit()